//
//  Common.swift
//  Weibo
//
//  Created by 方焘 on 16/6/11.
//  Copyright © 2016年 taofang. All rights reserved.
//

import UIKit


    // 微博需要的信息
    let AppKey = "1795483007"
    let AppSecret = "5178f50c030e472cbc417aec76307f3e"
    let Redirect_uri = "http://www.baidu.com"
    
    // app 主题颜色
    let ThemeColor = UIColor.orangeColor()
    // RGB颜色
    func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
        return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
    }
    // 随机颜色
    func RandomColor() -> UIColor{
        
        let r = CGFloat(random() % 256)
        let g = CGFloat(random() % 256)
        let b = CGFloat(random() % 256)
        
        return RGB(red: r, green: g, blue: b)
    }

